import request from '@/utils/request'

// 查询标签管理列表
export function listTag(data) {
  return request({
    url: '/thesaurus/tag/list',
    method: 'post',
    data: data
  })
}

// 查询标签管理详细
export function getTag(id) {
  return request({
    url: '/thesaurus/tag/' + id,
    method: 'get'
  })
}

// 新增标签管理
export function addTag(data) {
  return request({
    url: '/thesaurus/tag/add',
    method: 'post',
    data: data
  })
}

// 修改标签管理
export function updateTag(data) {
  return request({
    url: '/thesaurus/tag/edit',
    method: 'post',
    data: data
  })
}

// 删除标签管理
export function delTag(id) {
  return request({
    url: '/thesaurus/tag/remove/' + id,
    method: 'post'
  })
}

//未关联标签
export function noRelatedList(data) {
  return request({
    url: '/thesaurus/tag/noRelatedList',
    method: 'post',
    data: data
  })
}
//已关联标签
export function relatedList(data) {
  return request({
    url: '/thesaurus/tag/relatedList',
    method: 'post',
    data: data
  })
}
